﻿package com.d4p.util
{
	import flash.display.Sprite;

	public class RandomInts extends Sprite
	{
		public static function getRandomInts( min:Number, max:Number, num:Number):Array 
		{ 
			var specAry:Array = new Array(); 
			var resultAry:Array = new Array(); 
			var i:Number; 
			for( i = min; i<max+1; i++) specAry.push(i); 
			for( i= 0; i< num; i++){ 
			var rand:int = RandomUtil.getRandomInt(0, specAry.length-1); 
			resultAry.push(specAry[rand]); 
			specAry.splice(rand, 1); 
			} 
			return resultAry; 
		}

		
		
		public function RandomInts()
		{
			super();
		}
		
	}
}